import request from '@/utils/request'

// 查询敏感词管理列表
export function listSensitiveWord(query) {
  return request({
    url: '/system/sensitiveWord/list',
    method: 'get',
    params: query
  })
}

// 查询敏感词管理详细
export function getSensitiveWord(id) {
  return request({
    url: '/system/sensitiveWord/' + id,
    method: 'get'
  })
}

// 新增敏感词管理
export function addSensitiveWord(data) {
  return request({
    url: '/system/sensitiveWord',
    method: 'post',
    data: data
  })
}

// 修改敏感词管理
export function updateSensitiveWord(data) {
  return request({
    url: '/system/sensitiveWord',
    method: 'put',
    data: data
  })
}

// 删除敏感词管理
export function delSensitiveWord(id) {
  return request({
    url: '/system/sensitiveWord/' + id,
    method: 'delete'
  })
}

// 导出敏感词管理
export function exportSensitiveWord(query) {
  return request({
    url: '/system/sensitiveWord/export',
    method: 'get',
    params: query
  })
}